//
//  ZKTestViewController.swift
//  Weibo
//
//  Created by 郑克哥哥 on 2017/7/23.
//  Copyright © 2017年 郑克哥哥. All rights reserved.
//

import UIKit

class ZKTestViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        view.backgroundColor = UIColor.white

        setupPushButton()
    }
    
    
    //设置导航栏push按钮
    private func setupPushButton(){
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(push))
        
        
    }
    
    //push按钮事件
    @objc private func push(){
        
        //实例化控制器
        let VC = ZKTestViewController()
        
        //跳转控制器
        self.navigationController?.pushViewController(VC, animated: true)
        
    }

}
